<template>
  <div id="app">
    <!-- 路由出口 -->
    <!-- 用keep-alive缓存组件，避免每次进入home页面都需要重新加载发请求 -->
    <keep-alive>
      <router-view v-if="$route.meta.needKeep"></router-view>    
    </keep-alive>
    <router-view v-if="!$route.meta.needKeep"></router-view>
  </div>
</template>

<style lang="less"></style>
